﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SalaryPrintSlip.aspx.cs" Inherits="UI.ModSalary.SalaryPrintSlip" %>
 <%@ Import Namespace="System.Data" %>
  <%@ Import Namespace="System.Data.SqlClient" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>打印工资条</title>
      <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/CheckActivX.js"></script>
       
          <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
    </object>
    <script type="text/javascript">
        var LODOP = document.getElementById("LODOP");
        CheckLodop();
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="button" value="打印工资条" class="ButtonCss" onclick="print_preview()" />
    <div id="content">
    
   <asp:literal runat="server" ID="lt1"></asp:literal>
    </div>
   
    </form>
     <script language="javascript" type="text/javascript">
         function print_preview() {
             LODOP.PRINT_INIT("打印工资条");
             LODOP.ADD_PRINT_HTM(20, 30, 1070, 700, document.getElementById("content").innerHTML);
             LODOP.PREVIEW();
         };	
    </script>
</body>
</html>

